<?php
/**
 * Created by PhpStorm.
 * User: yinnannan
 * Date: 16/1/19
 * Time: 上午5:15
 */
class productdesc  {

    public function insert($result,$mainpic ,$pics,$content){
   
    	DB::insert("sysproductdesc",array('productId','mainpic','pics','content'))
				->values(array($result,$mainpic ,$pics,$content))
				->execute();
   	}

   	public function delete($parm){
   		 DB::delete('sysproductdesc')->where('productId','=',$parm['id'])->execute();
   		
		
   	}
}